/*
 * @Author: daifen
 * @Date: 2020-10-28 09:59:27
 * @LastEditors: daifen
 */
import request from '@/utils/request'

// 查询红外结果列表
export function listResult(query) {
  return request({
    url: '/task/result/list',
    method: 'get',
    params: query
  })
}

// 查询图片结果列表
export function listImageResult(id) {
  return request({
    url: '/task/result/listbydataid/'+id,
    method: 'get'
  })
}
// 查询红外结果详细
export function getResult(id) {
  return request({
    url: '/task/result/' + id,
    method: 'get'
  })
}

// 新增红外结果
export function addResult(data) {
  return request({
    url: '/task/result',
    method: 'post',
    data: data
  })
}

// 修改红外结果
export function updateResult(data) {
  return request({
    url: '/task/result',
    method: 'put',
    data: data
  })
}

// 删除红外结果
export function delResult(id) {
  return request({
    url: '/task/result/' + id,
    method: 'delete'
  })
}


// 修改红外结果
export function updateResultDelflag(data) {
  return request({
    url: '/task/result/delflag',
    method: 'put',
    data: data
  })
}

// 导出红外结果
export function exportResult(query) {
  return request({
    url: '/task/result/export',
    method: 'get',
    params: query
  })
}
